import Vue from 'vue'
import VueRouter from 'vue-router'

// 导入组件
import home from '../views/home.vue'
import find from '../views/find.vue'
import play from '../views/play.vue'

Vue.use(VueRouter)

// 配置路由
const routes = [{
    path: '/',
    name: 'home',
    component: home
  },
  {
    path: '/find',
    name: 'find',
    component: find
  },
  {
    path: '/play',
    name: 'play',
    component: play
  },
]

const router = new VueRouter({
  routes
})

export default router
